<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta charset="UTF-8">
    <link rel="stylesheet" href="${initParam.root}css/table.css" type="text/css">
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>

<form method="post" id="updateForm" action="${initParam.root}seller/update_DealInfo.do" enctype="multipart/form-data">
<table class="registerMemberTable"  style="margin: 0 auto ; width: 500px" >
<tr>
<td colspan=2><h2>상품수정페이지입니다.</h2></td>
</tr>
<tr>
<td width="100px">상품번호</td>
<td><input type="text" name="dealNumber" value="${requestScope.dealVO.dealNumber}" readonly="readonly"></td>
</tr>
<tr>
<td>상품명</td>
<td> <input type="text" name="dealTitle" value="${requestScope.dealVO.dealTitle}" required></td>
</tr>
<tr>
<td>카테고리</td>
<td><input type="text" name="category" value="${requestScope.dealVO.category}" required></td>
</tr>
<tr>
<td>등록자</td>
<td><input type="text" name="sellerId" value="${sessionScope.login.sellerId}" readonly="readonly"></td>
</tr>
<tr>
<td>상품가격</td>
<td><input type="text" name="dealPrice" value="${requestScope.dealVO.dealPrice}" required></td>
</tr>
<tr>
<td>상품수량</td>
<td><input type="text" name="dealCount" value="${requestScope.dealVO.dealCount}" required></td>
</tr>
<tr>
<td>마감일</td>
<td><input type="text" name="dealEndDate" value="${requestScope.dealVO.dealEndDate}" required></td>
</tr>
<tr>
<td>이미지</td>
<td><img src="${initParam.root }upload/${requestScope.dealVO.dealImage }" width="300px" height="300px">&nbsp;&nbsp;<input type="file" name="uploadFile" >
<input type="hidden" name="dealImage" value="${requestScope.dealVO.dealImage }">
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="상품수정완료"></td>
</tr>
</table>
</form> 